projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e491a71
)
cread_line(): Remove unused variables
author
Peter Tyser
<
[email protected]
>
Sun, 25 Oct 2009 20:12:53 +0000
(15:12 -0500)
committer
Wolfgang Denk
<
[email protected]
>
Tue, 27 Oct 2009 19:58:25 +0000
(20:58 +0100)
Signed-off-by: Peter Tyser <
[email protected]
>
common/main.c
patch
|
blob
|
history
diff --git
a/common/main.c
b/common/main.c
index 298982a48add712fa2a7032eb9b2ccb6c9770e5d..b47e443f7b2847d8121581a277e5c316c636a88e 100644
(file)
--- a/
common/main.c
+++ b/
common/main.c
@@
-715,16
+715,13
@@
static int cread_line(const char *const prompt, char *buf, unsigned int *len)
{
unsigned long num = 0;
unsigned long eol_num = 0;
- unsigned long rlen;
unsigned long wlen;
char ichar;
int insert = 1;
int esc_len = 0;
- int rc = 0;
char esc_save[8];
while (1) {
- rlen = 1;
#ifdef CONFIG_BOOT_RETRY_TIME
while (!tstc()) { /* while no incoming data */
if (retry_time >= 0 && get_ticks() > endtime)
@@
-923,7
+920,7
@@
static int cread_line(const char *const prompt, char *buf, unsigned int *len)
cread_add_to_hist(buf);
hist_cur = hist_add_idx;
- return
(rc)
;
+ return
0
;
}
#endif /* CONFIG_CMDLINE_EDITING */